{extend name="base" /}
{block name="body"}

<div class="am-padding am-padding-bottom-0">
	<strong class="am-text-primary am-text-lg">文件管理</strong> / <small>添加</small>
</div>

<div class="am-padding am-btn-toolbar">
	<div class="am-btn-group am-btn-group-xs">
		<a href="{:url('admin/Files/index')}" class="am-btn am-btn-default"><span class="am-icon-plus"></span> 列表</a>
		<a href="{:url('admin/Files/add')}" class="am-btn am-btn-default"><span class="am-icon-plus"></span> 上传</a>
		<button type="button" class="am-btn am-btn-default"><span class="am-icon-trash-o"></span> 删除</button>
	</div>
</div>

<form class="am-form"  action="{:url('admin/Files/add')}" method="post">
	<fieldset>


		<div class="am-form-group">
			<div class="am-input-group">
				<span class="am-input-group-label">用途</span>
				<select name="purpose" class="am-form-field">
					{foreach name="purpose" item="vo"}
					<option value="{$key}">{$vo}</option>
					{/foreach}
				</select>
			</div>
		</div>


		<div class="am-form-group am-form-file">
			<div class="am-input-group">
				<span class="am-input-group-label">预览</span>
				<div class="am-form-image">
					<input type="file" class="ajax-upload-file" data-url="{:url('api/Upload/index')}" data-dir="media" data-purpose="adv" data-allowext="mp4,mp3,mov" data-ipt="#ipt-file" data-thumb="false">
				</div>		
			</div>
			<div class="am-input-group">
				<span class="am-input-group-label">媒体</span>
				<input type="text" name="image" class="am-form-field" placeholder="请上传" id="ipt-file">
			</div>
		</div>



		<p><button type="reset" class="am-btn am-btn-default">重置</button> <button type="submit" lay-submit lay-filter="submit" class="am-btn am-btn-default">保存</button></p>
	

	</fieldset>
</form>
         
          
{/block}


        